package cn.ai.boot.config.PCF;

public class DaQuerySdkOrder {
    public static final String ASC = "asc";
    public static final String DESC = "desc";
    private String name;
    private String order;
    private Boolean filter = true;

    public static DaQuerySdkOrder asc(String name) {
        DaQuerySdkOrder qo = new DaQuerySdkOrder();
        qo.setName(name);
        qo.setOrder("asc");
        return qo;
    }

    public static DaQuerySdkOrder desc(String name) {
        DaQuerySdkOrder qo = new DaQuerySdkOrder();
        qo.setName(name);
        qo.setOrder("desc");
        return qo;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrder() {
        return this.order;
    }

    public void setOrder(String order) {
        if ("desc".equalsIgnoreCase(order)) {
            this.order = "desc";
        } else {
            this.order = "asc";
        }

    }

    public String toString() {
        String var10000 = this.getName();
        return var10000 + " " + this.getOrder();
    }

    public Boolean getFilter() {
        return this.filter;
    }

    public void setFilter(Boolean filter) {
        this.filter = filter;
    }
}